<template>
  <div class="start-test">
    <!-- <Card :title="title" :image="image" @click="handleClick"></Card> -->
    <Button type="info" @click="handleClick" size="small">{{ title }}</Button>
  </div>
</template>

<script lang="ts">
import { Component, Vue } from 'vue-property-decorator';
import Card from '@/components/card';
import { writeStartCode } from '@/modules/bluetooth';
import { Button } from 'vant';

@Component({
  name: 'StartTest',
  components: {
    Card,
    Button
  }
})
export default class StartTest extends Vue {
  private title = '开始测试';

  handleClick() {
    this.$emit('on-click');
    writeStartCode();
  }

}
</script>
